const BASE_URL = process.env.VUE_APP_API_BASE_URL + '/shop';
// 电商管理台接口
module.exports = {
  // 商品模块
  GOODS: `${BASE_URL}/goods`,
  HOTGOODS: `${BASE_URL}/goods/hotGoods`,
  GET_SOLD_NUM: `${BASE_URL}/goods/getSoldNum`,
  HADNLE_GOOD: `${BASE_URL}/goods/`,
  SEARCHGOOD: `${BASE_URL}/goodsSearch`,
  SALED_TOTAL: `${BASE_URL}/goods/getAllNum`,
  CLASSIFY: `${BASE_URL}/classify`,
  HANDLE_CLASSIFY: `${BASE_URL}/classify/`,
  GOODS_COLUMNS: `${BASE_URL}/columns`,

  // 订单模块
  ORDERSCOUNT: `${BASE_URL}/ordercount`,
  ORDER: `${BASE_URL}/order`,
  HANDLE_ORDER: `${BASE_URL}/order/`,
  VISITNUM: `${BASE_URL}/user/visitnum`,

  // 轮播图模块
  CAROUSELGROUP: `${BASE_URL}/carouselgroup`,
  HANDLE_CAROUSEL: `${BASE_URL}/carousel/`,
  CAROUSEL: `${BASE_URL}/carousel`,
  UPLOAD_CAROUSEL: `${BASE_URL}/update`,

  // sku模块
  // 规格属性接口
  SKUKEY_ADD: `${BASE_URL}/skuKeyValue`,
  SKUKEY_UPDATE: `${BASE_URL}/updateKeyValue`,
  SKUKEY_GET: `${BASE_URL}/getKeyValue`,
  SKUKEY_DEL: `${BASE_URL}/delKeyValue/`,
  SKUVALUE_DEL: `${BASE_URL}/delValue/`,
  //规格接口
  SKU_ADD: `${BASE_URL}/sku`,
  SKU_UPDATE: `${BASE_URL}/sku/`,
  SKU_GET: `${BASE_URL}/getSku`,
  SKU_DEL: `${BASE_URL}/sku/`,

  // 其他模块
  UPLOADGOODS: `${BASE_URL}/imgUpdate`,
  //  退款接口
  REFUND_ORDER: `${BASE_URL}/wechatpay/refund`,
  //  创建物流
  CREATE_LOGISTICS: `${BASE_URL}/createLogistics`,
};
